<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<meta http-equiv="Content-Language" content="English" />	
  	<meta name="author" content="Kim Duyên - Trúc Mai - Kim Phụng - Ngọc Nhung" />
	<meta name="description" content="Du lịch Đồng Tháp" />
	<meta name="keywords" content="Quản lý" />
    <title><?php echo $title; ?></title>	
	<link href="<?php echo base_url();?>style/styleadmin.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript" src="<?php echo base_url();?>js/jquery-1.9.0.js"></script>
	<script type="text/javascript" src="<?php echo base_url();?>js/jquery.validate.js"></script>
	<script type="text/javascript" src="<?php echo base_url();?>js/localization/messages_vi.js"></script>	
    <script type="text/javascript" src="<?php echo base_url();?>js/jquery-latest.js"></script>
	<script type="text/javascript">
    $(document).ready(function() {
        $("#admin_tendn_signin").blur(function() { 
            if($("#admin_tendn_signin").val() != ''){
                $("#result_admin_tendn_signin").html('checking...');
                }
                    var form_data = {admin_tendn_signin: $("#admin_tendn_signin").val()};
                    $.ajax({
                        type: "POST",
                        url: "<?php echo base_url();?>index.php/admin/admin/checkvalue_tendangnhap_signin",
                        data:form_data,
                        success: function(result) { 
                    $("#result_admin_tendn_signin").html(result); 
                }
            });
        });
    });    
    </script>
    <script>
    $(document).ready(function() {
        $("#admin_email_signin").blur(function() { 
            if($("#admin_email_signin").val() != ''){
                $("#result_admin_email_signin").html('checking...');
                }
                    var form_data = {admin_email_signin: $("#admin_email_signin").val()};
                    $.ajax({
                        type: "POST",
                        url: "<?php echo base_url();?>index.php/admin/admin/checkvalue_email_signin",
                        data:form_data,
                        success: function(result) { 
                    $("#result_admin_email_signin").html(result); 
                }
            });
        });
    });    
    </script>
    
</head>

<body id="signin_body">
<div id="signin_header"></div>
		<div id="signin_wrapper"> 
               	
            <div id="signin_left">
            	<div id="signin_login">
                	<h3></h3>
                	<label id="tk_signin">Nếu bạn đã có tài khoản quản trị! Vui lòng</label>
                    <div id="login_here"><a href="<?php echo base_url();?>index.php/admin/admin/login">Đăng nhập</a></div>
                </div>
                <div id="signin_form">
					<?php
                        $attributes = array('id'=>'signin_form_frm', 'name'=>'signin_form_frm');			
                        echo form_open_multipart(base_url().'index.php/admin/admin/insert_signin',$attributes);
                    ?>                               	
                    	<div class="block_signin">
                    		<label>Họ và tên</label>
                        	<input class="input_signin" type="text" id="admin_hoten_signin" name="admin_hoten_signin" value="<?php echo set_value('admin_hoten_signin','') ?>"/>                                                      
                        </div>
                        <?php echo form_error('admin_hoten_signin', '<div class="error_validate_signin">', '</div>'); ?> 
                    	<div class="block_signin">
                    		<label>Tên đăng nhập</label>
                        	<input class="input_signin" type="text" id="admin_tendn_signin" name="admin_tendn_signin" value="<?php echo set_value('admin_tendn_signin','') ?>"/>
                             <span id="result_admin_tendn_signin"></span>
                        </div>
                        <?php echo form_error('admin_tendn_signin', '<div class="error_validate_signin">', '</div>'); ?> 
                        <div class="block_signin">
                        	<label>Mật khẩu</label>
                        	<input class="input_signin" type="password" id="admin_matkhau_signin" name="admin_matkhau_signin"/>
                         </div>
                         <?php echo form_error('admin_matkhau_signin', '<div class="error_validate_signin">', '</div>'); ?> 
                         <div class="block_signin">
                        	<label>Nhập lại mật khẩu</label>
                        	<input class="input_signin" type="password" id="admin_nhaplaimatkhau_signin" name="admin_nhaplaimatkhau_signin"/>
                         </div>
                         <?php echo form_error('admin_nhaplaimatkhau_signin', '<div class="error_validate_signin">', '</div>'); ?> 
                         <div class="block_signin">
                        	<label>Ngày sinh</label>
                        	<select class="input_select_signin" name="sltNgay" id="sltNgay"> 
                                <option selected = "Ngày" value="ngay"<?php echo set_select('sltNgay','ngay') ?>>Ngày</option>
									<?php
                                    for ($i=1;$i<=31;$i++)
                                    echo"<option value = ".$i.">".$i."</option>";
                                    ?>
                            </select> &nbsp;&nbsp;
                            <select class="input_select_signin" name="sltThang" id="sltThang"> 
                                <option selected = "Tháng" value="thang"<?php echo set_select('sltThang','thang') ?>>Tháng</option>
									<?php
                                    for ($i=1;$i<=12;$i++)
                                    echo"<option value = ".$i.">".$i."</option>";
                                    ?>
                            </select> &nbsp;&nbsp;
                            <select class="input_select_signin" name="sltNam" id="sltNam"> 
                                <option selected = "Năm" value="nam"<?php echo set_select('sltNam','nam') ?>>Năm</option>
									<?php
                                        for ($i=1970;$i<=2000;$i++)
                                        echo"<option value =".$i.">".$i."</option>";
                                    ?>
                            </select> &nbsp;&nbsp;
                         </div>
                         <div class="block_signin">
                        	<label>Giới tính</label>
                        	<span class="input_signin">
                            	<input type="radio" name="rdGioiTinh" id="radio" value="<?php echo set_radio('rdGioiTinh','1') ?>"  checked="checked"/>Nam &nbsp;&nbsp;&nbsp;
								<input type="radio" name="rdGioiTinh" id="radio2" value="<?php echo set_radio('rdGioiTinh','0') ?>" />Nữ 
							</span> 
                         </div>
                         <div class="block_signin">
                        	<label>Địa chỉ</label>
                        	<input class="input_signin" type="text" id="admin_diachi_signin" name="admin_diachi_signin" value="<?php echo set_value('admin_diachi_signin','') ?>"/>
                         </div>
                         <div class="block_signin">
                        	<label>Email</label>
                        	<input class="input_signin" type="text" id="admin_email_signin" name="admin_email_signin" value="<?php echo set_value('admin_email_signin','') ?>"/>
                            <span id="result_admin_email_signin"></span>
                         </div>
                         <?php echo form_error('admin_email_signin', '<div class="error_validate_signin">', '</div>'); ?> 
                         <div class="block_signin">
                        	<label>Số điện thoại</label>
                        	<input class="input_signin" type="text" id="admin_sodienthoai_signin" name="admin_sodienthoai_signin" value="<?php echo set_value('admin_sodienthoai_signin','') ?>"/>
                         </div>
                         <?php echo form_error('admin_sodienthoai_signin', '<div class="error_validate_signin">', '</div>'); ?> 
                         <div class="block_signin">
                        	<label>Số CMND</label>
                        	<input class="input_signin" type="text" id="admin_cmnd_signin" name="admin_cmnd_signin" value="<?php echo set_value('admin_cmnd_signin','') ?>"/>
                         </div>
                         <?php echo form_error('admin_cmnd_signin', '<div class="error_validate_signin">', '</div>'); ?> 
                         <div class="block_signin">
                         <input class="input_check_signin" type="checkbox" id="ckbDongy" name="ckbDongy" value="<?php echo set_checkbox('ckbDongy','') ?>"/><label for="ckbDongy"></label>&nbsp; Đồng ý
                         </div>
							
                         <div class="block_button_signin">
                    		<input id="btnDangKy" class ="btnDangnhap" type="submit" value="Đăng ký"/>
                        </div>
                    </form>
                </div>
            </div>
            <div id="signin_footer_noidung">
                <hr />
                <label>BẢN QUYỀN BỞI ĐỒNG THÁP TOURIST</label>
             </div>
            <div id="signin_right">
            </div>

        </div>

</body>
</html>